﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Arith.Property
{
    class PropertyDemo2
    {
        public static void Main()
        {
            Student3 stud = new Student3();
            stud.Roll=100; //cal set 
            stud.Name="Arun";
            //ShowStudent(stud._roll, stud._name);
            ShowStudent(stud);
            Console.WriteLine("Thank you...");
            Console.Read();
        }

        public static void ShowStudent(Student3 st)
        {
            Console.WriteLine("Student Info.");
            Console.WriteLine("--------------------");
            Console.WriteLine("Roll No.  :" + st.Roll); // call get
            Console.WriteLine("Name      :" + st.Name);
            Console.WriteLine("-------------------------");

        }
    }
}
